package validator.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import validator.handle.PatternValidator;

@Validate
@Handle(PatternValidator.class)
@NotNull
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.ANNOTATION_TYPE })
public @interface Pattern {
	String regex() default ".*";

	String value() default "error";
}
